package com.drg.center.dao;

import com.drg.center.entity.DrgPatientCasePO;
import com.drg.center.entity.param.CaseMonitorPageDTO;
import com.drg.center.entity.result.CaseMonitorPageVO;
import com.drg.center.mapper.DrgPatientCaseExtMapper;
import com.drg.center.mapper.DrgPatientCaseMapper;
import com.guaike.core.mybatis.plugins.BaseDAO;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@AllArgsConstructor
public class DrgPatientCaseDAO extends BaseDAO<DrgPatientCaseMapper, DrgPatientCasePO> {

    private final DrgPatientCaseExtMapper drgPatientCaseExtMapper;

    public List<CaseMonitorPageVO> findPageList(Integer start, CaseMonitorPageDTO param) {
        return drgPatientCaseExtMapper.findPageList(start, param);
    }

    public long findPageCount(CaseMonitorPageDTO param) {
        return drgPatientCaseExtMapper.findPageCount(param);
    }
}
